from page.HomePage import HomePage
from page.LoginPage import LoginPage
from page.LoginandRegisterPage import LoginandRegisterPage
from page.MyPage import MyPage
from page.PersonalPage import PersonalPage
from page.verifyPage import verifyPage
from page.settingPage import settingPage
class Louout():
    def logout(self,address):
        HomePage().disallow_click()  # 点击“不允许”
        HomePage().my_click()  # 点击“我的”
        MyPage().loginandRegister_click()  # 点击“注册/登录”
        LoginandRegisterPage().login_click()  # 点击“登录”
        LoginPage().input_address(address)  # 输入测试公链值
        LoginPage().login_click()  # 尝试点击“登录账号”
        verifyPage().verify_click()  # 尝试点击“验证地址”
        verifyPage().finish_click()  # 点击“完成”
        HomePage().disallow_again_click()  # 点击第二个弹窗的“不允许”
        HomePage().my_click()  # 点击“我的”
        PersonalPage().sopts_click()  # 点击右上角的三个点
        PersonalPage().setting_click()  # 点击“设置”
        settingPage().logout_click()  # 点击“退出登录”
        settingPage().determine_click()  # 点击“确定”
        HomePage().my_click()#再次点击“我的”
if __name__ == '__main__':
    Louout().logout('TS9gFv5pEmaon3dpZmniLP4ouz1CYngL97')